﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IOBusiness.LinqDB;

namespace IOBusiness.ClassLinq
{
    public class clsLqDanhMuc        
    {
        SapaDBDataContext objContext = new SapaDBDataContext();
        public List<tblDanhMuc> DanhMuc_getDanhMuc(int idDanhMuc)
        {
            try
            {
                var select = from danhmuc in objContext.tblDanhMucs
                             where danhmuc.ID.Equals(idDanhMuc)
                             select danhmuc;
                return select.ToList<tblDanhMuc>();
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
